]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
perf: Shut up an eslint error
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 4 Feb 2019 12:14:09 +0000 (13:14 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Jul 2019 22:28:45 +0000 (00:28 +0200)
The while(true) loop is intentional here and not a bug, so disable
the corresponding eslint rule.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627

js/perf/hwtest.js

index e74ba25ac5a312b3af830310d86046c40d96692b..9c3c620fd7f6e69b1a43349ca51649a85951adb0 100644 (file)
@@ -82,7 +82,7 @@ function extractBootTimestamp() {
     let result = null;
 
     let datastream = Gio.DataInputStream.new(sp.get_stdout_pipe());
-    while (true) {
+    while (true) { // eslint-disable-line no-constant-condition
         let [line, length_] = datastream.read_line_utf8(null);
         if (line === null)
             break;